package com.qingxin.qrCode.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="qr_num")
public class QrNum extends com.qingxin.sys.entity.BaseEntity implements
java.io.Serializable{

		
	/**
	 * 
	 */
	private static final long serialVersionUID = -5158095209491837585L;
	
	
	private String qrnumid;
	private String codeid;
	private String code;
	private String companyid;
	private String parkid;
	private String cropid;
	private String createBy;
	private Date createTime;
	private String is_activation;//0未使用，1已使用
	private String deltype;//
	
	

	public QrNum() {
		super();
		// TODO Auto-generated constructor stub
	}

	public QrNum(String qrnumid, String codeid, String code, String companyid,
			String parkid, String cropid, String createBy, Date createTime,
			String is_activation, String deltype) {
		super();
		this.qrnumid = qrnumid;
		this.codeid = codeid;
		this.code = code;
		this.companyid = companyid;
		this.parkid = parkid;
		this.cropid = cropid;
		this.createBy = createBy;
		this.createTime = createTime;
		this.is_activation = is_activation;
		this.deltype = deltype;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "qrnumid", unique = true, nullable = false, length = 32)
	public String getQrnumid() {
		return qrnumid;
	}

	public void setQrnumid(String qrnumid) {
		this.qrnumid = qrnumid;
	}

	@Column(name = "codeid", length = 32)
	public String getCodeid() {
		return codeid;
	}

	public void setCodeid(String codeid) {
		this.codeid = codeid;
	}

	@Column(name = "code", length = 50)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "companyid", length = 32)
	public String getCompanyid() {
		return companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}

	@Column(name = "parkid", length = 32)
	public String getParkid() {
		return parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}

	@Column(name = "cropid", length = 32)
	public String getCropid() {
		return cropid;
	}

	public void setCropid(String cropid) {
		this.cropid = cropid;
	}

	@Column(name = "createBy", length = 32)
	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	
	@Column(name = "createTime", length = 23)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "is_activation", length = 1)
	public String getIs_activation() {
		return is_activation;
	}

	public void setIs_activation(String is_activation) {
		this.is_activation = is_activation;
	}

	@Column(name = "deltype", length = 1)
	public String getDeltype() {
		return deltype;
	}
	public void setDeltype(String deltype) {
		this.deltype = deltype;
	}
	
	
	
	
}
